package top.zsyle.sycc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import top.zsyle.sycc.fallback.CourseFallbackFactory;
import top.zsyle.sycc.result.JsonResult;

@FeignClient(value = "service-course", path = "course", contextId = "courseService", fallbackFactory = CourseFallbackFactory.class)
public interface CourseService {

    @RequestMapping(value="/info/{courseIds}",method= RequestMethod.GET)
    JsonResult info(@PathVariable("courseIds") String courseIds);

}
